package com.syswin.lhztest.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Service;

/**
 * @author:lhz
 * @date:2019/1/18 10:04
 */
@Service
@EnableAsync
public class AsynTestService {

	@Async("msgThreadPool")
	public void  test(){
		System.out.println("thread:"+Thread.currentThread().getName());
	}
}
